From d68430090025ad7646f256242440ca181bf26ac4 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Sun, 30 Oct 2005 16:25:52 +0100 Subject: [PATCH] Added cast to silence warning on 64-bit. Signed-off-by: Ewan Mellor --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index a0d5b4edb1..dda10a04ad 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -552,7 +552,7 @@ static void dev_changed(const char *node, struct xen_bus_type *bus) /* backend//... or device//... */ p = strchr(node, '/') + 1; - snprintf(type, BUS_ID_SIZE, "%.*s", strcspn(p, "/"), p); + snprintf(type, BUS_ID_SIZE, "%.*s", (int)strcspn(p, "/"), p); type[BUS_ID_SIZE-1] = '\0'; rootlen = strsep_len(node, '/', bus->levels); -- 2.30.2